<div class="topBar">
      <div class="topTitle">艺术家列表</div>
      <div class="topButton"><a href="/admin/add-artist" target="_self"><img src="/images/admin/addNew.gif"/></a></div>
    </div>
	
	<table cellspacing="0" cellpadding="0" border="0" class="listTable">
	<tbody>
	  <tr class="thead">
		<td>ID</td>
		<td>艺术家</td>
		<td>显示位置</td>
		<td>操作</td>
	  </tr>
	  <?php
	  foreach ($this->artists as $artist){
	  	?>
	 
	  <tr>
		<td><?php echo $artist->id;?></td>
		<td><a target="_self" href="/admin/edit-artist/id/<?php echo $artist->id;?>"><?php echo $artist->name;?></a></td>
		<td><a target="_self" href="/admin/edit-artist/id/<?php echo $artist->id;?>">
			<?php 
				switch( $artist->display_position ){
					case 0 :
						echo "默认列表页";
						break;
					case 1 :
						echo "首页右侧Artist apprisal";
						break;
					case 2 :
						echo "首页右侧Artist interview";
						break;
					case 3 :
						echo "首页批评家说";
						break;



					
				}
			?></a></td>
		<td><a target="_self" href="/admin/edit-artist/id/<?php echo $artist->id;?>">编辑</a>&nbsp;&nbsp;&nbsp;&nbsp;<a target="_self" href="/admin/delete-artist/id/<?php echo $artist->id;?>">删除</a></td>
	  </tr>
	  <?php
	   }
	  ?>
	</tbody>
	</table>
	
